# num1,num2="11","123"
num1,num2="0","0"
def addStrings(num1,num2):
    #字符串反转
    num1Rev,num2Rev=num1[::-1],num2[::-1]
    num1Int,num2Int=0,0
    for i in range(len(num1Rev)):
        num1Int+=(ord(num1Rev[i])-ord('0'))*pow(10,i)
    for i in range(len(num2Rev)):
        num2Int+=(ord(num2Rev[i])-ord('0'))*pow(10,i)
    return str(num1Int+num2Int)
print(addStrings(num1,num2))
